import React from "react";
import Admin from "../../../layout/Admin";
import UserModel from "../../../model/user";
import moment from "moment";
const log = console.log.bind(console)

class AppActivateList extends React.Component {
    constructor(props) {
        super(props)
        this.model = new UserModel()
        this.state = {
            list: [],
            dayDiff: 3,
            start: moment().subtract(3, 'day').set({hour:0,minute:0,second:0,millisecond:0}),
            end: moment(),
            from: 1,
        }
    }

    componentDidMount() {
        this.all()
    }

    all = () => {
        const params = {
            Startt: parseInt(this.state.start.format('X')),
            Endt: parseInt(this.state.end.format('X')),
            From: this.state.from,
        }
        this.model
            .appActivate(params)
            .then(res => {
                log('res', res)
            })
    }

    render() {
        return <Admin>
            <div className='list-container'>

            </div>
        </Admin>
    }
}

export default AppActivateList